
package com.microweb.toastmaster.service;

import java.util.List;

import com.microweb.toastmaster.service.Manager;
import com.microweb.toastmaster.model.TMRole;
import com.microweb.toastmaster.dao.TMRoleDao;

public interface TMRoleManager extends Manager {
    /**
     * Retrieves all of the tMRoles
     */
    public List getTMRoles(TMRole tMRole);

    /**
     * Gets tMRole's information based on id.
     * @param id the tMRole's id
     * @return tMRole populated tMRole object
     */
    public TMRole getTMRole(final String id);

    public TMRole getTMRoleByName(final String rolename) throws Exception;

    /**
     * Saves a tMRole's information
     * @param tMRole the object to be saved
     */
    public void saveTMRole(TMRole tMRole);

    /**
     * Removes a tMRole from the database by id
     * @param id the tMRole's id
     */
    public void removeTMRole(final String id);
}

